package com.itheima.appserver.service;

import com.alibaba.dubbo.config.annotation.Reference;
import com.itheima.dubbo.interfaces.TimeLineApi;
import org.bson.types.ObjectId;
import org.springframework.stereotype.Service;

/**
 * @author yaohu
 * @date 2021/12/7
 * @Version 1.0
 * @describe
 */
@Service
public class TimeLineService {

    @Reference
    private TimeLineApi timeLineApi;

    public void saveTimeLine(Long userId, ObjectId id) {
        timeLineApi.saveFriendTimeLine(userId, id);
    }
}
